Skip to content

surject: realign anchors containing substitutions - #5010

Draft
Sagorikanag wants to merge 1 commit into
vgteam:masterfrom
Sagorikanag:fix-surject-anchor-rescoring
Draft

surject: realign anchors containing substitutions#5010
Sagorikanag wants to merge 1 commit into
vgteam:masterfrom
Sagorikanag:fix-surject-anchor-rescoring

Conversation

@Sagorikanag

Copy link
Copy Markdown

Changelog Entry

  • Surjection now realigns complete anchor chunks containing substitutions
    instead of accepting them through the exact-anchor shortcut.

Description

When one anchor chunk covered an entire surjection interval, surjection copied
the chunk directly and rescored it without realignment. This shortcut assumed
that the chunk represented an exact match.

Some mapper-produced chunks contain sequence-bearing substitution edits,
including ambiguous N bases. Applying the shortcut to these chunks could
produce incorrect alignment scores, including large negative scores.

This change restricts the shortcut to chunks without substitutions. Chunks
containing substitutions follow the existing multipath realignment path.
It also initializes the interval sequence and base qualities before rescoring
a shortcut alignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant